Skip to content

Conversation

@labkey-tchad
Copy link
Member

Rationale

Introducing an explicit method for quoting lookup values for pasting into an editable grid.
Updating tests to use EditableGrid.quoteForPaste and TestDataUtils.stringFromRows will allow us to deprecate and remove TestDataUtils.TsvQuoter which is redundant and rarely used for TSVs anymore.

Related Pull Requests

Changes

  • Use Apache CSVFormat to quote lookup values for pasting
  • Deprecate TestDataUtils.TsvQuoter in favor of EditableGrid.quoteForPaste
  • Update SampleTypeTest to use test components

5 8/1/2025 but wait
6 8/2/2025 still more
""".replace("[F1]", _tsvQuoter.quoteValue(textFieldName));
List<List<String>> bulkData = List.of(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we expect to need to convert many paste-bound texts in this way? I expect there are a lot of tests out there using plain formatted TSVs

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are definitely tons of TSV Strings getting created across our tests. I don't think we need to proactively update things that aren't a problem but we should use these helpers going forward.
That being said, we can't use them universally for editable grid pasting.

@labkey-tchad labkey-tchad merged commit c1fad30 into develop Aug 11, 2025
8 of 9 checks passed
@labkey-tchad labkey-tchad deleted the fb_quoteLookupsForPaste branch August 11, 2025 22:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants